package com.tankgame;

import javax.swing.*;

public class HspTankGame extends JFrame {
    MyPanel mp = null;
    public static void main(String[] args) {
        HspTankGame hspTankGame = new HspTankGame();
    }

    public HspTankGame(){
        super("坦克大战");
        mp = new MyPanel();
        new Thread(mp).start();
        this.add(mp);
        this.setSize(1000, 900);
        this.addKeyListener(mp);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}